package com.ruoyi.platform.domain;

import java.io.Serializable;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.annotation.Excel;

/**
 * 【预警信息】对象 m_warning
 * 
 * @author dataControl
 * @date 2025-09-15
 */
public class MWarning  implements Serializable
{
    /** 系统编号 */
    private Long warningId;

    /** 监控设备ID */
    @Excel(name = "监控设备ID")
    private Long equipmentId;

    /** 仓位ID */
    @Excel(name = "仓位ID")
    private Long storeLocationId;

    /** 仓位编码 */
    @Excel(name = "仓位编码")
    private String storeLocationCode;

    /** $column.columnComment */
    @Excel(name = "预警类型", readConverterExp = "$column.readConverterExp()")
    private Long warningType;

    /** 预警内容 */
    @Excel(name = "预警内容")
    private String warningContent;

    /** 预警时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预警时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date warningTime;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "创建时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date createDate;

    /** 指令id */
    private Long commandResultId;

    /** 仓位编码 */
    @Excel(name = "仓位名称")
    private String storeLocationName;

    @Excel(name = "预置点位ID")
    private String presetId;

    @Excel(name = "设备名称")
    private String equipmentName;

    @Excel(name = "设备编码")
    private String equipmentCode;

    private String key;

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    /**
     * 指令执行开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预警开始时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date warningStartTime;

    /**
     * 指令执行结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @Excel(name = "预警结束时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss")
    private Date warningEndTime;



    @Override
    public String toString() {
        return "MWarning{" +
                "warningId=" + warningId +
                ", equipmentId=" + equipmentId +
                ", storeLocationId=" + storeLocationId +
                ", storeLocationCode='" + storeLocationCode + '\'' +
                ", warningType=" + warningType +
                ", warningContent='" + warningContent + '\'' +
                ", warningTime=" + warningTime +
                ", createDate=" + createDate +
                ", commandResultId=" + commandResultId +
                ", presetId='" + presetId + '\'' +
                ", equipmentName='" + equipmentName + '\'' +
                ", equipmentCode='" + equipmentCode + '\'' +
                ", storeLocationName='" + storeLocationName + '\'' +
                '}';
    }

    public Date getWarningStartTime() {
        return warningStartTime;
    }

    public void setWarningStartTime(Date warningStartTime) {
        this.warningStartTime = warningStartTime;
    }

    public Date getWarningEndTime() {
        return warningEndTime;
    }

    public void setWarningEndTime(Date warningEndTime) {
        this.warningEndTime = warningEndTime;
    }

    public String getPresetId() {
        return presetId;
    }

    public void setPresetId(String presetId) {
        this.presetId = presetId;
    }

    public String getEquipmentName() {
        return equipmentName;
    }

    public void setEquipmentName(String equipmentName) {
        this.equipmentName = equipmentName;
    }

    public String getEquipmentCode() {
        return equipmentCode;
    }

    public void setEquipmentCode(String equipmentCode) {
        this.equipmentCode = equipmentCode;
    }

    public String getStoreLocationName() {
        return storeLocationName;
    }

    public void setStoreLocationName(String storeLocationName) {
        this.storeLocationName = storeLocationName;
    }


    public Long getWarningId() {
        return warningId;
    }

    public void setWarningId(Long warningId) {
        this.warningId = warningId;
    }

    public Long getEquipmentId() {
        return equipmentId;
    }

    public void setEquipmentId(Long equipmentId) {
        this.equipmentId = equipmentId;
    }

    public Long getStoreLocationId() {
        return storeLocationId;
    }

    public void setStoreLocationId(Long storeLocationId) {
        this.storeLocationId = storeLocationId;
    }

    public String getStoreLocationCode() {
        return storeLocationCode;
    }

    public void setStoreLocationCode(String storeLocationCode) {
        this.storeLocationCode = storeLocationCode;
    }

    public Long getWarningType() {
        return warningType;
    }

    public void setWarningType(Long warningType) {
        this.warningType = warningType;
    }

    public String getWarningContent() {
        return warningContent;
    }

    public void setWarningContent(String warningContent) {
        this.warningContent = warningContent;
    }

    public Date getWarningTime() {
        return warningTime;
    }

    public void setWarningTime(Date warningTime) {
        this.warningTime = warningTime;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public Long getCommandResultId() {
        return commandResultId;
    }

    public void setCommandResultId(Long commandResultId) {
        this.commandResultId = commandResultId;
    }

}
